Event filtering at a performance-based interface

ABSTRACT

Architecture that facilitates performance enhancement in message-based computing across a performance-based interface. When a request from a source is transmitted across the interface to a destination, a filter component in communication with the destination dynamically allows only one or more relevant responses from the destination to transition the interface to the source. This mechanism achieves an even tighter filtering of events while at the same time giving developers more flexibility over the events they choose to register, thereby enhancing the performance of message-based computing architectures by reducing unnecessary computation.

TECHNICAL FIELD

This invention is related to software application platforms, and morespecifically, interoperability between managed and native environments.

BACKGROUND OF THE INVENTION

Technological advances in semiconductor devices continue to spawn largernumbers of portable computing devices that can require small footprintexecution environments and application platforms, many of which areresource constrained. In the marketplace, it is competitively criticalto have a platform that is a preferment and is as flexible as possible.Interoperability across a native/managed boundary between the managedplatform and the native operating system, which provides many of thebase services on which the platform relies, has an overhead cost that isexpensive to process in rapid succession.

In GUI (graphical user interface) applications, events need to betrafficked across the native/managed boundary. There are so many eventsthat it becomes a potential performance roadblock. Conventional userinterface (UI) systems use a static system that allows the framework tobe preferment through filtering of the UI events that are returned tothe application. This is important, since the transition from the nativecode layer to the managed code layer is expensive in terms of at leastresources consumed and processor cycles. Thus, minimizing transitionsacross this boundary has a dramatic effect on application performance.One existing static filtering system forces a developer to makedecisions on which events are propagated and which events will not. Forthose that are not propagated, managed code developers have no way toregister or be called back on any of these events, thereby limiting theflexibility of developers on the platform.

What is needed is a flexible event filtering system that maintains highperformance without sacrificing developer flexibility.

SUMMARY OF THE INVENTION

The following presents a simplified summary of the invention in order toprovide a basic understanding of some aspects of the invention. Thissummary is not an extensive overview of the invention. It is notintended to identify key/critical elements of the invention or todelineate the scope of the invention. Its sole purpose is to presentsome concepts of the invention in a simplified form as a prelude to themore detailed description that is presented later.

The present invention disclosed and claimed herein, in one aspectthereof, comprises a system that facilitates a performance enhancementin message-based computing across a performance-based interface. When arequest from a source is transmitted across the interface to adestination, a filter component in communication with the destinationdynamically allows only one or more relevant responses from thedestination to transition the interface to the source. This mechanismachieves an even tighter filtering of events while at the same timegiving developers more flexibility over the events they choose toregister, thereby enhancing the performance of message-based computingarchitectures by reducing unnecessary computation.

In another aspect of the present invention, there is provided a systemthat facilitates a performance enhancement in message-based computingacross a performance-based interface between a managed code frameworkand a native code framework. When the managed code framework generates arequest to the native framework, the native code framework receives therequest and issues one or more responses thereto. A filter component incommunication with the native code framework dynamically allows only oneor more relevant responses of the native code framework to transitionthe interface to the managed code framework. All irrelevant responsesare discarded.

In another aspect of the present invention, there is provided a systemthat uses type introspection to allow a developer to dynamicallyregister and un-register events. When the system initializes one or moreof its managed objects, it determines if the user has derived their owncustom object. If so, the system further determines if the user hasmodified the handling of messages in the custom object. When modified,the native code framework is notified that messages associated with themodified handling are of interest. The system then forwards only thosemessages to the managed code framework for the duration of the lifetimeof the managed object.

To the accomplishment of the foregoing and related ends, certainillustrative aspects of the invention are described herein in connectionwith the following description and the annexed drawings. These aspectsare indicative, however, of but a few of the various ways in which theprinciples of the invention may be employed and the present invention isintended to include all such aspects and their equivalents. Otheradvantages and novel features of the invention may become apparent fromthe following detailed description of the invention when considered inconjunction with the drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a system that performs event filtering in accordancewith the present invention.

FIG. 2 illustrates a flow chart of process in accordance with thepresent invention.

FIG. 3 illustrates a system that performs event filtering in accordancewith the present invention.

FIG. 4 illustrates a flow chart of a process for filtering events inaccordance with the present invention.

FIG. 5 illustrates a flow chart of an alternative process for filteringevents in accordance with the present invention.

FIG. 6 illustrates a block diagram of a dynamic event handling processin accordance with the present invention.

FIG. 7 illustrates a block diagram of a computer operable to execute thedisclosed architecture.

FIG. 8 illustrates a schematic block diagram of an exemplary computingenvironment in accordance with the present invention.

DETAILED DESCRIPTION OF THE INVENTION

The present invention is now described with reference to the drawings,wherein like reference numerals are used to refer to like elementsthroughout. In the following description, for purposes of explanation,numerous specific details are set forth in order to provide a thoroughunderstanding of the present invention. It may be evident, however, thatthe present invention may be practiced without these specific details.In other instances, well-known structures and devices are shown in blockdiagram form in order to facilitate describing the present invention.

As used in this application, the terms “component” and “system” areintended to refer to a computer-related entity, either hardware, acombination of hardware and software, software, or software inexecution. For example, a component may be, but is not limited to being,a process running on a processor, a processor, an object, an executable,a thread of execution, a program, and/or a computer. By way ofillustration, both an application running on a server and the server canbe a component. One or more components may reside within a processand/or thread of execution and a component may be localized on onecomputer and/or distributed between two or more computers.

As used herein, the term to “infer” or “inference” refer generally tothe process of reasoning about or inferring states of the system,environment, and/or user from a set of observations as captured viaevents and/or data. Inference can be employed to identify a specificcontext or action, or can generate a probability distribution overstates, for example. The inference can be probabilistic—that is, thecomputation of a probability distribution over states of interest basedon a consideration of data and events. Inference can also refer totechniques employed for composing higher-level events from a set ofevents and/or data. Such inference results in the construction of newevents or actions from a set of observed events and/or stored eventdata, whether or not the events are correlated in close temporalproximity, and whether the events and data come from one or severalevent and data sources.

Referring now to FIG. 1, there is illustrated a system 100 that performsevent filtering in accordance with the present invention. The system 100includes a performance-based interface 102 that the transmission acrossdegrades system performance in some way by requiring increased systemresources to process data moving across the interface 102. In oneimplementation, which will be described in detail hereinbelow, theinterface 102 is that which exists between managed and native code. Inanother implementation, the interface 102 is that which exists between aclient and a server. Such an interface 102 exists in many other systems,for example, communications systems where a portable communicationsdevice sends a signal requesting a response, which response comprisesmore data than is requested such that the system processing is excessivefor what it actually needs to be.

On either side of the interface 102, for purposes of this description,are a source component 104 (which can also be a destination) and adestination component 106 (which can also be a source with respect tothe destination 104). The source component 104 communicates across theinterface 102 to the destination 106 via a communications component 108,and the destination component 106 receives the communication from thesource 106 via a communications component 110. Similarly, a request orsignal sent from the destination 106, now being a source 106, canrequire system resources to process the transition of the signal acrossthe interface 102 to the destination 104 (previously the source 104).The destination 104 can then attempt to transmit one or more responsesback across the interface 102, the excess of which require excessivesystem resources.

In order to minimize the use of excessive system resources for signalingacross the interface 102, the communications components (108 and 110)only forward requested and necessary information to the sources. Thatis, when the source 104 sends a request to the destination 106, thecommunications component 110 receives and processes the request,forwards the request to the destination 106, receives the responses fromthe destination 106, filters out all unnecessary responses, and forwardsonly the requested information across the interface 102 to the source104. Similarly, where the destination 106 is now a requesting source106, the source 106 transmits a request to the destination 104(previously the source 104). The destination 104 responds with excessiveamounts of information to the communications component 108. That is,when the source 106 sends a request to the destination 104, thecommunications component 108 receives and processes the request,forwards the request to the destination 104, receives the responses fromthe destination 104, filters out all unnecessary responses, and forwardsonly the requested information across the interface 102 to the source106.

It is to be appreciated by one skilled in the art that the source 104may comprise multiple source subcomponents communicating requeststhrough the communications component 110 to multiple (or single)respective destinations, such that the communication component 110processes and forwards each of the requests to the respective (orsingle) destinations, receives the responses back from each of themultiple respective (or single) destinations, and forwards only thenecessary responses across the interface 102 to the corresponding source104.

Additionally, the communications component 110 may comprise multiplesubcomponents, each which handles a different type of request for thesource 104 and associated responses from the destination 106 such thatexcessive responses for each of the requests are prevented from beingtransmitted across the interface 102 back to the source 104.

The system 100 can also employ various artificial intelligence basedschemes for carrying out various aspects of the subject invention(although this is not a requirement, as indicated by the dashed lines).For example, a process for determining the number and type of responsesto be returned to the source 104 can be facilitated via an automaticclassifier system and process. Moreover, where the there are multiplecommunications subcomponents of the component 110, the classifier 112can be employed to perform load balancing, for example, to determinewhich subcomponent to be used for processing the request and responsesback to the source 104.

A classifier is a function that maps an input attribute vector, x=(x1,x2, x3, x4, xn), to a confidence that the input belongs to a class, thatis, f(x)=confidence(class). Such classification can employ aprobabilistic and/or statistical-based analysis (e.g., factoring intothe analysis utilities and costs) to prognose or make an inference thata user desires to be automatically performed. In the case ofrequest/response systems, for example, attributes can be request orresponse, and the classes are categories or areas of interest (e.g.,levels of priority).

A support vector machine (SVM) is an example of a classifier that can beemployed. The SVM operates by finding a hypersurface in the space ofpossible inputs, which hypersurface attempts to split the triggeringcriteria from the non-triggering events. Intuitively, this makes theclassification correct for testing data that is near, but not identicalto training data. Other directed and undirected model classificationapproaches include, e.g., naïve Bayes, Bayesian networks, decisiontrees, and probabilistic classification models providing differentpatterns of independence can be employed. Classification as used hereinalso is inclusive of statistical regression that is utilized to developmodels of priority.

As will be readily appreciated from the subject specification, thesubject invention can employ classifiers that are explicitly trained(e.g., via a generic training data) as well as implicitly trained (e.g.,via observing user behavior, receiving extrinsic information). Forexample, SVM's are configured via a learning or training phase within aclassifier constructor and feature selection module. Thus, theclassifier(s) may be used to perform a number of functions, includingbut not limited to automatically determining according to apredetermined criteria what response(s) should be returned for a givenrequest, when the response(s) should be returned based on the state ofthe interface 102, what request(s) should be process first, whatresponses should be processed, what responses should be processed beforeother responses, and what subcomponents of the communication component110 should be employed (in a load balancing scenario, for example).

The classifier 112 can also be used to make determinations based uponthe type of computing device in which the performance-based interface isbeing employed. For example, where the computing device includes a touchscreen user interface, but the managed code interprets the request froman input mechanism other than the touch screen, that being anunsupported input mechanism, the classifier 112 can automaticallyprovide substitute event handling. For example, is the managed codeissues a request for a mouse, yet no mouse exists, the classifier 112controls the system 100 to provide the substitute response(s) to therequest.

In another implementation, the system 100 can include a global filterthat adds or subtracts messages and response(s) to those messages. Thatis, even if the managed code requests one or more responses, the system100 will “know” that for al purposes, the managed code does not wantthose responses. This can also be facilitated by the classifier 112.

Referring now to FIG. 2, there is illustrated a flow chart of process inaccordance with the present invention. While, for purposes of simplicityof explanation, the one or more methodologies shown herein, e.g., in theform of a flow chart, are shown and described as a series of acts, it isto be understood and appreciated that the present invention is notlimited by the order of acts, as some acts may, in accordance with thepresent invention, occur in a different order and/or concurrently withother acts from that shown and described herein. For example, thoseskilled in the art will understand and appreciate that a methodologycould alternatively be represented as a series of interrelated states orevents, such as in a state diagram. Moreover, not all illustrated actsmay be required to implement a methodology in accordance with thepresent invention.

At 200, the performance-sensitive interface is received. At 202, asource transmits a request. At 204, a destination communicationscomponent receives, processes, and forwards the request to thedestination. At 206, the destination processes the request and transmitsresponse information back to the communications component. At 208, thedestination communications component processes the response informationto disallow irrelevant response information and allow only the relevantresponse information to transition across the interface to the source.The process then reaches a Stop block.

Referring now to FIG. 3, there is illustrated a system 300 that performsevent filtering in accordance with the present invention. The system 300includes a performance-based interface 302 between a layer 304 that cancomprise at least one of native code and managed code, and a framework306 that can comprise at least one of native code and managed code.Thus, the performance-based interface 302 can exist cross-process innative code and/or potentially cross-machine over a network (for anon-GUI scenario).

Such a performance-based interface 302 can exist between the native codelayer 304 and managed code framework 306 with respect to a graphicaluser interface (GUI). A GUI portion of a small footprint executionenvironment and application platform can consist of two main components:an interface layer written in native code (e.g., between a WINDOWS CEbrand graphics/windowing/events system (GWES) and the framework providedto developers) and the framework itself, written in managed code. Thetransition between the native code layer 304 and the managed codeframework 306 is relatively expensive in terms of performance, so thenative interface layer only forwards a subset of all messages from theGWES to the managed framework. Traditionally, choosing the subset ofmessages involved a tradeoff between a minimum number of messagesrequired to make the managed framework useful, and the overhead offorwarding messages of no interest to the user of the framework.

The system 300 includes a includes a communications filter component 308(similar to communications components 108 and 110) that resides on thenative code side of the interface 302 and simultaneously alleviatestraditional limitations of selecting a subset of all possible responsesof the native code 304 for exposure to the managed framework.Additionally, the communications filter component 308 also addressesperformance issues that would arise from attempting to forward all GWESresponses by allowing only relevant responses to cross the interface 302to the managed code 306, thus conserving system resources an enhancingsystem performance.

The system 300 can also include a communications component 310 (althoughthis is not required) as part of the managed framework that can beemployed to handle callbacks from the native layer 304 to the managedcode 306 to ensure that the request received was that which was sent,and was sent from that managed code 306. The communications component310 receives and processes the callback from the native layer 304, andforwards the callback to the managed code 306. The managed code 306responds with information that may contain more than what is needed bythe native layer 304. The component 310 than filters out the excessinformation and forwards only the relevant or required informationacross the interface 302 to the native layer 304.

The system 300 can also include the classifier 110 to perform a numberof functions mentioned previously.

It is to be appreciated that the present invention is not restricted toGUI classes, but can be employed in many types of non-GUI classes thatprocess events. There is a list of classes in the most any applicationthat want to know about the responses to the request. Any system thatuses messages or callbacks can employ the novel architecture. Forexample, this can include memory systems, timers, network data, andnetwork status information.

Other small footprint environments that typically run on reducedresources include small devices, e.g., PDAs, cell phones, set-top boxesfor TVs, video game units, and automobiles. However, the disclosedinvention will also work with larger system computing devices, forexample, desktop computer and portable computers.

Referring now to FIG. 4, there is illustrated a flow chart of a processfor filtering events in accordance with the present invention. Users ofthe framework can implicitly indicate interest in particular messages byinstantiating a framework object and attaching an event handler to oneof its events and two, and deriving a custom object from a frameworkobject and modifying the way the framework object responds to messages.A language runtime provides syntax for attaching and detaching eventhandlers from events on a framework object. Following is one method bywhich framework users indicate interest in a message. At 400, theframework is provided. At 402, the framework customizes attach anddetach processes. At 404, the framework signals the native interfacelayer of the status of the attach/detach process, i.e., that an eventhandler has been attached or detached. At 406, the native layer tracksthe number of attached event handlers. At 408, the interface layer onlyforwards the relevant messages to the managed framework when one of moreevent handlers is attached. The process then reaches a Stop block.

Framework User Source Code

Following is sample framework user source code representative of a mouseclick event.

public class MyForm : Form { protected Button myButton; public MyForm( ){ myButton = new Button( ); // User implicitly indicates “interest” heremyButton.Click += new EventHandler(this.myButton_Click); } protectedvirtual void myButton_Click(object sender, EventArgs e) { // User actson event resulting from message // forwarded to managed code from thenative layer. } }

Framework Implementation Source Code

Following is sample customized source code generated by the frameworkfrom the user source code of the above example.

public class Button : Control { private event EventHandler m_evtClick;// Process messages forwarded from native layer protected voidMessageHandler (Message m) { switch (m) { case MSG_CLICK:OnClick(EventArgs.Empty); break; } } // Process event handler attach anddetach public event EventHandler Click { add { m_evtClick += value; //Framework notifies native layer of // attached event handler } remove {// Framework notifies native layer of // event handler detach m_evtClick−= value; } } // Notify attached event handlers of message protectedvirtual void OnClick(EventArgs e) { if (m_evtClick != null)m_evtClick(this, e); } }

Referring now to FIG. 5, there is illustrated a flow chart of analternative process for filtering events in accordance with the presentinvention. The language runtime also includes the capability of typeintrospection (and in one specific implementation, called reflection),to dynamically inspect the properties, methods and events implemented ona managed object. At 500, the framework is provided. At 502, theframework provides managed objects. At 504, the framework initializesits objects. At 506, the framework performs reflection. At 508, adetermination is made if the framework user has derived their own customobject. If so, flow is to 510 to determine if the user has modified thehandling of messages in the custom object. If it is determined thatmessage handling has been modified, flow is to 512 where the frameworkobject will notify the native interface layer that the message is ofinterest to the user. At 514, the native layer forwards messages to themanaged framework for the duration of the lifetime of the managedobject. The process then reaches a Stop block.

Note that the present invention is not restricted to a common languageruntime, but can be any type introspecting runtime, e.g., JAVA andSMALLTALK. Moreover, the framework can be managed code receiving amessage across the interface from managed code, native code receiving amessage across the interface from managed code, and native codereceiving a message across the interface from native code.

An advantage of the alternative implementation is that the frameworkuser does not need to use additional function calls or unusual API's(Application Program Interfaces) to indicate “interest” in particularmessages. The framework is able to infer “interest” directly from theuser's implementation of their application or library.

Framework User Source Code

Following is sample framework user source code representative of theabove reflection process.

public class MyButton : Button { // User implicitly indicates “interest”here protected virtual override void OnClick(EventArgs e) { // User actson message forwarded from native // layer. } }

Framework Implementation Source Code

Following is sample customized source code generated by the frameworkfrom the user source code of the above example.

public class Button : Control { public Button( ) { // Use CLR reflectionto determine if user has // customized message handling on this class.// If so, notify the native layer to forward // necessary messages. } }

It is to be appreciated that the present invention could be implementedwith other languages or run-times that have equivalent functionality toreflection of the CLR. Additionally, this invention can be implementedwith languages that use callbacks for event handlers. The functionalityof the native layer to selectively forward messages to the managedframework can be integrated into the operating system directly. Thesubject invention could also be applied to any message-basedarchitecture where the client is frequently only interested in a subsetof the total number of available messages.

Referring now to FIG. 6, there is illustrated a block diagram of adynamic event handling process 600 in accordance with the presentinvention. There is provided an application 602 that sends out a request(or message) to the native code, expecting to receive back a response.The request can be related to any type of event that is user generatedand/or application generated. The application 602 registers the event at604. At 606, the managed code framework receives the event and notifiesan event filter 608 of the registration. The event filter is locatedacross the performance-based interface 102 positioned to intercept andreject responses to the events that are not needed by the application602. The event filter 608 than communicates back to the application 602across the interface 102 that it has received notification of theregistered event. The event is then processed through an event loop 610that includes processing the request associated with the event inaccordance with the destination processes (e.g., a native code layer orsystem operating system), and receiving back a plurality of informationassociated with responses to the request. The responses are fed back tothe event filter 608, and then filtered for irrelevant responses suchthat only relevant responses are forwarded from the filter 608 acrossthe interface 102 to the application 602.

Once the one or more responses are received and processed by theapplication 602, the event can be unregistered, at 612. The frameworkreceives the unregistered message, at 614, and notifies the event filter608 that the event is now unregistered. The filter will then prevent allresponses associated with this event from crossing the interface 102. Atthis time, the filter 608 can also signal the application that the eventhas been un-registered; however, this is not necessary.

Referring now to FIG. 7, there is illustrated a block diagram of acomputer operable to execute the disclosed architecture. In order toprovide additional context for various aspects of the present invention,FIG. 7 and the following discussion are intended to provide a brief,general description of a suitable computing environment 700 in which thevarious aspects of the present invention may be implemented. While theinvention has been described above in the general context ofcomputer-executable instructions that may run on one or more computers,those skilled in the art will recognize that the invention also may beimplemented in combination with other program modules and/or as acombination of hardware and software.

Generally, program modules include routines, programs, components, datastructures, etc., that perform particular tasks or implement particularabstract data types. Moreover, those skilled in the art will appreciatethat the inventive methods may be practiced with other computer systemconfigurations, including single-processor or multiprocessor computersystems, minicomputers, mainframe computers, as well as personalcomputers, hand-held computing devices, microprocessor-based orprogrammable consumer electronics, and the like, each of which may beoperatively coupled to one or more associated devices.

The illustrated aspects of the invention may also be practiced indistributed computing environments where certain tasks are performed byremote processing devices that are linked through a communicationsnetwork. In a distributed computing environment, program modules may belocated in both local and remote memory storage devices.

A computer typically includes a variety of computer-readable media.Computer-readable media can be any available media that can be accessedby the computer and includes both volatile and nonvolatile media,removable and non-removable media. By way of example, and notlimitation, computer readable media can comprise computer storage mediaand communication media. Computer storage media includes both volatileand nonvolatile, removable and non-removable media implemented in anymethod or technology for storage of information such as computerreadable instructions, data structures, program modules or other data.Computer storage media includes, but is not limited to, RAM, ROM,EEPROM, flash memory or other memory technology, CD-ROM, digital videodisk (DVD) or other optical disk storage, magnetic cassettes, magnetictape, magnetic disk storage or other magnetic storage devices, or anyother medium which can be used to store the desired information andwhich can be accessed by the computer.

Communication media typically embodies computer-readable instructions,data structures, program modules or other data in a modulated datasignal such as a carrier wave or other transport mechanism, and includesany information delivery media. The term “modulated data signal” means asignal that has one or more of its characteristics set or changed insuch a manner as to encode information in the signal. By way of example,and not limitation, communication media includes wired media such as awired network or direct-wired connection, and wireless media such asacoustic, RF, infrared and other wireless media. Combinations of the anyof the above should also be included within the scope ofcomputer-readable media.

With reference again to FIG. 7, there is illustrated an exemplaryenvironment 700 for implementing various aspects of the invention thatincludes a computer 702, the computer 702 including a processing unit704, a system memory 706 and a system bus 708. The system bus 708couples system components including, but not limited to, the systemmemory 706 to the processing unit 704. The processing unit 704 may beany of various commercially available processors. Dual microprocessorsand other multi-processor architectures may also be employed as theprocessing unit 704.

The system bus 708 can be any of several types of bus structure that mayfurther interconnect to a memory bus (with or without a memorycontroller), a peripheral bus, and a local bus using any of a variety ofcommercially available bus architectures. The system memory 706 includesread only memory (ROM) 710 and random access memory (RAM) 712. A basicinput/output system (BIOS) is stored in a non-volatile memory 710 suchas ROM, EPROM, EEPROM, which BIOS contains the basic routines that helpto transfer information between elements within the computer 702, suchas during start-up. The RAM 712 can also include a high-speed RAM suchas static RAM for caching data.

The computer 702 further includes an internal hard disk drive (HDD) 714(e.g., EIDE, SATA), which internal hard disk drive 714 may also beconfigured for external use in a suitable chassis (not shown), amagnetic floppy disk drive (FDD) 716, (e.g., to read from or write to aremovable diskette 718) and an optical disk drive 720, (e.g., reading aCD-ROM disk 722 or, to read from or write to other high capacity opticalmedia such as the DVD). The hard disk drive 714, magnetic disk drive 716and optical disk drive 720 can be connected to the system bus 708 by ahard disk drive interface 724, a magnetic disk drive interface 726 andan optical drive interface 728, respectively. The interface 724 forexternal drive implementations includes at least one or both ofUniversal Serial Bus (USB) and IEEE 1394 interface technologies.

The drives and their associated computer-readable media providenonvolatile storage of data, data structures, computer-executableinstructions, and so forth. For the computer 702, the drives and mediaaccommodate the storage of any data in a suitable digital format.Although the description of computer-readable media above refers to aHDD, a removable magnetic diskette, and a removable optical media suchas a CD or DVD, it should be appreciated by those skilled in the artthat other types of media which are readable by a computer, such as zipdrives, magnetic cassettes, flash memory cards, cartridges, and thelike, may also be used in the exemplary operating environment, andfurther, that any such media may contain computer-executableinstructions for performing the methods of the present invention.

A number of program modules can be stored in the drives and RAM 712,including an operating system 730, one or more application programs 732,other program modules 734 and program data 736. All or portions of theoperating system, applications, modules, and/or data can also be cachedin the RAM 712.

It is appreciated that the present invention can be implemented withvarious commercially available operating systems or combinations ofoperating systems.

A user can enter commands and information into the computer 702 throughone or more wired/wireless input devices, e.g., a keyboard 738 and apointing device, such as a mouse 740. Other input devices (not shown)may include a microphone, an IR remote control, a joystick, a game pad,a stylus pen, touch screen, or the like. These and other input devicesare often connected to the processing unit 704 through an input deviceinterface 742 that is coupled to the system bus 708, but may beconnected by other interfaces, such as a parallel port, an IEEE 1394serial port, a game port, a USB port, an IR interface, etc.

A monitor 744 or other type of display device is also connected to thesystem bus 708 via an interface, such as a video adapter 746. Inaddition to the monitor 744, a computer typically includes otherperipheral output devices (not shown), such as speakers, printers etc.

The computer 702 may operate in a networked environment using logicalconnections via wired and/or wireless communications to one or moreremote computers, such as a remote computer(s) 748. The remotecomputer(s) 748 may be a workstation, a server computer, a router, apersonal computer, portable computer, microprocessor-based entertainmentappliance, a peer device or other common network node, and typicallyincludes many or all of the elements described relative to the computer702, although, for purposes of brevity, only a memory storage device 750is illustrated. The logical connections depicted include wired/wirelessconnectivity to a local area network (LAN) 752 and/or larger networks,e.g., a wide area network (WAN) 754. Such LAN and WAN networkingenvironments are commonplace in offices, and companies, and facilitateenterprise-wide computer networks, such as intranets, all of which mayconnect to a global communication network, e.g., the Internet.

When used in a LAN networking environment, the computer 702 is connectedto the local network 752 through a wired and/or wireless communicationnetwork interface or adapter 756. The adaptor 756 may facilitate wiredor wireless communication to the LAN 752, which may also include awireless access point disposed thereon for communicating with thewireless adaptor 756. When used in a WAN networking environment, thecomputer 702 can include a modem 758, or is connected to acommunications server on the LAN, or has other means for establishingcommunications over the WAN 754, such as by way of the Internet. Themodem 758, which may be internal or external and a wired or wirelessdevice, is connected to the system bus 708 via the serial port interface742. In a networked environment, program modules depicted relative tothe computer 702, or portions thereof, may be stored in the remotememory/storage device 750. It will be appreciated that the networkconnections shown are exemplary and other means of establishing acommunications link between the computers may be used.

The computer 702 is operable to communicate with any wireless devices orentities operably disposed in wireless communication, e.g., a printer,scanner, desktop and/or portable computer, portable data assistant,communications satellite, any piece of equipment or location associatedwith a wirelessly detectable tag (e.g., a kiosk, news stand, restroom),and telephone. This includes at least Wi-Fi and Bluetooth™ wirelesstechnologies. Thus, the communication may be a predefined structure aswith conventional network or simply an ad hoc communication between atleast two devices.

Wi-Fi, or Wireless Fidelity, allows connection to the Internet from acouch at home, a bed in a hotel room or a conference room at work,without wires. Wi-Fi is a wireless technology like a cell phone thatenables such devices, e.g., computers, to send and receive data indoorsand out; anywhere within the range of a base station. Wi-Fi networks useradio technologies called IEEE 802.11 (a, b, g, etc.) to provide secure,reliable, fast wireless connectivity. A Wi-Fi network can be used toconnect computers to each other, to the Internet, and to wired networks(which use IEEE 802.3 or Ethernet). Wi-Fi networks operate in theunlicensed 2.4 and 5 GHz radio bands, with an 11 Mbps (802.11b) or 54Mbps (802.11a) data rate or with products that contain both bands (dualband), so the networks can provide real-world performance similar to thebasic 10BaseT wired Ethernet networks used in many offices.

Referring now to FIG. 8, there is illustrated a schematic block diagramof an exemplary computing environment 800 in accordance with the presentinvention. The system 800 includes one or more client(s) 802. Theclient(s) 802 can be hardware and/or software (e.g., threads, processes,computing devices). The client(s) 802 can house cookie(s) and/orassociated contextual information by employing the present invention,for example. The system 800 also includes one or more server(s) 804. Theserver(s) 804 can also be hardware and/or software (e.g., threads,processes, computing devices). The servers 804 can house threads toperform transformations by employing the present invention, for example.One possible communication between a client 802 and a server 804 may bein the form of a data packet adapted to be transmitted between two ormore computer processes. The data packet may include a cookie and/orassociated contextual information, for example. The system 800 includesa communication framework 806 (e.g., a global communication network suchas the Internet) that can be employed to facilitate communicationsbetween the client(s) 802 and the server(s) 804.

Communications may be facilitated via a wired (including optical fiber)and/or wireless technology. The client(s) 802 are operably connected toone or more client data store(s) 808 that can be employed to storeinformation local to the client(s) 802 (e.g., cookie(s) and/orassociated contextual information). Similarly, the server(s) 804 areoperably connected to one or more server data store(s) 810 that can beemployed to store information local to the servers 804.

What has been described above includes examples of the presentinvention. It is, of course, not possible to describe every conceivablecombination of components or methodologies for purposes of describingthe present invention, but one of ordinary skill in the art mayrecognize that many further combinations and permutations of the presentinvention are possible. Accordingly, the present invention is intendedto embrace all such alterations, modifications and variations that fallwithin the spirit and scope of the appended claims. Furthermore, to theextent that the term “includes” is used in either the detaileddescription or the claims, such term is intended to be inclusive in amanner similar to the term “comprising” as “comprising” is interpretedwhen employed as a transitional word in a claim.

1. A system that facilitates a performance enhancement in message-basedcomputing, the system comprising at least one processor and one or morecomputing devices configured with: a performance-based eventtransmission interface across which a request from a source istransmitted to a destination; and a filter component in communicationwith the destination that dynamically determines which responseinformation is relevant in order to filter out any excess responseinformation that is deemed irrelevant, such that allows only relevantresponses from the destination are transmitted to the source via theperformance-based event transmission interface, wherein the filtercomponent is part of at least one of native code and managed code andwherein irrelevant responses are discarded; wherein the source notifiesa native layer that an event handler has attached or detached, whereinthe destination issues a callback to the source, in response the filtercomponent permits only a relevant response to the callback to betransmitted to the destination, and wherein the filter component isnotified by the source when an event handler has attached to or detachedfrom a source object, and forwards the one or more responses only whenthe associated event handlers are attached.
 2. The system of claim 1,the source comprises at least one of native code and managed code, andthe destination comprises at least one of native code and managed code.3. The system of claim 1, the filter component is integrated into anoperating system.
 4. The system of claim 1 is employed in a smallfootprint execution environment that has reduced resources.
 5. Thesystem of claim 1, the source is part of a managed code framework thatincludes a graphical user interface (GUI) application that transmits anevent for processing by the destination, which destination is part ofnative code.
 6. The system of claim 1, further comprising a classifierthat makes an inference about processes that can be automaticallyperformed.
 7. A computer readable storage medium having stored thereoncomputer executable instructions for carrying out the system of claim 1.8. A computer that employs the system of claim
 1. 9. A server thatemploys the system of claim
 1. 10. The system of claim 1, the source isassociated with a GUI such that the request receives only the one ormore responses from a graphics/windowing/events system that are relevantto the request.
 11. The system of claim 1, the source can dynamicallyinspect at least one of properties, methods, and events implemented on asource object.
 12. The system of claim 1, the source utilizes reflectionduring initialization of an object to determine the presence of a customobject.
 13. The system of claim 1, the source utilizes reflection duringinitialization of an object to determine if message handling has beenmodified in a custom object.
 14. The system of claim 1, the sourceutilizes type introspection to determine the presence of a customobject, in response to which the destination is notified that a messageassociated with the custom object is of interest and will be forwardedfrom the destination for a lifetime of the custom object.
 15. A systemthat facilitates a performance enhancement in message-based computing,the system comprising at least one processor and one or more computingdevices configured with: a managed code framework that generates arequest; a native code framework that receives the request and issuesone or more responses thereto; a performance-based event transmissioninterface between the managed code framework and the native codeframework across which the request is passed and the one or moreresponses are transmitted; and a filter component in communication withthe native code framework that dynamically determines which responseinformation is relevant in order to filter out any excess responseinformation that is deemed irrelevant, such that allows only relevantresponses of the native code framework are transmitted to the managedcode framework via the performance-based event transmission interface,wherein irrelevant responses are discarded; and a managed code filtercomponent that is part of the managed code framework, which managed codefilter processes a callback from the native code framework and onlyforwards responses from the managed code to the native code that arerelevant to the callback, wherein the filter component is notified bythe managed code framework when an event handler has at least one ofregistered and unregistered from a managed object and forwards the oneor more responses only when the associated event handlers areregistered.
 16. The system of claim 15, the filter component is part ofthe native code framework.
 17. The system of claim 15, the filtercomponent only allows the one or more responses across theperformance-based event transmission interface that are relevant to therequest.
 18. The system of claim 15, the filter component only processesevents that are registered.
 19. The system of claim 15, the managed codeframework source utilizes type introspection during initialization of anobject to determine the presence of a custom object.
 20. The system ofclaim 15, the managed code framework utilizes type introspection duringinitialization of an object to determine if message handling has beenmodified in a custom object.
 21. The system of claim 15, the managedcode framework utilizes type introspection to determine the presence ofa custom object, in response to which the native code framework isnotified that a message associated with the custom object is of interestand will be forwarded from the native code framework for a lifetime ofthe custom object.
 22. A computer-readable storage medium tangiblyembodying thereon computer-executable instructions for performing amethod of managing messages across a performance-based eventtransmission interface, the method comprising: receiving theperformance-based event transmission interface across which a requestfrom a source is transmitted to a destination; returning one or moreresponses to the request from the destination; dynamically determiningwhich response information is relevant in order to filter out any excessresponse information that is deemed irrelevant; filtering the one ormore responses to allow only responses that are relevant to the requestto be transmitted from the destination to the source via the eventtransmission performance-based interface, wherein irrelevant responsesare discarded; and transmitting the relevant responses across theperformance-based event transmission interface to the source; whereinthe source notifies a native layer that an event handler has attached ordetached, wherein the destination issues a callback to the source, inresponse the filter component permits only a relevant response to thecallback to be transmitted to the destination, wherein the filtercomponent is notified by the source when an event handler has attachedto or detached from a source object, and forwards the one or moreresponses only when the associated event handlers are attached.
 23. Thecomputer-readable storage medium of claim 22, the act of filteringoccurs on the destination side of the performance-based eventtransmission interface.
 24. The computer-readable storage medium ofclaim 22, the method further comprising at least one of the acts of:transmitting the relevant responses according to priority criteria;transmitting a request from the destination to the source; filtering theone or more responses to allow only responses from the source that arerelevant to the request; and transmitting the relevant responses acrossthe performance-based event transmission interface to the destination.25. A method of managing messages across a performance-based eventtransmission interface, comprising using one or more processors toperform the following computer-executable acts: receiving theperformance-based event transmission interface between a managed codeand a native code; registering an event handler for an event of amanaged object; notifying the native code that the event handler isregistered; returning one or more responses of the native codeassociated with the event; dynamically determining which responseinformation is relevant in order to filter out any excess responseinformation that is deemed irrelevant; filtering the one or moreresponses of the native code to determine the relevant responsesassociated with the event, such that only responses that are relevant tothe request are allowed to be transmitted from the destination to thesource via the performance-based event transmission interface, whereinirrelevant responses are discarded; transmitting the relevant responsesacross the performance-based event transmission interface to the managedcode only when the associated event handler is registered; processing arequest, issued by an application, associated with the event inaccordance with a destination process; unregistering the event;notifying an event filter that the event is unregistered; and signalingthe application that the event has been unregistered.
 26. The method ofclaim 25, further comprising tracking the attached event with the nativecode.
 27. A system that facilitates the management of messages across aperformance-based event transmission interface, comprising: a processor;system memory; means for receiving the performance-based eventtransmission interface between a managed code and a native code; meansfor registering an event handler for an event of a managed object; meansfor notifying the native code that the event handler is registered;means for returning one or more responses of the native code associatedwith the event; means for dynamically determining which responseinformation is relevant in order to filter out any excess responseinformation that is deemed irrelevant; means for filtering the one ormore responses of the native code to determine the relevant responsesassociated with the event, such that only responses that are relevant tothe request are allowed to be transmitted from the destination to thesource via the event transmission performance-based interface, whereinirrelevant responses are discarded; means for transmitting the relevantresponses across the performance-based event transmission interface tothe managed code only when the associated event handler is registered;and means for unregistering the one or more event handlers when theassociated events have expired.